<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GitToDoc - 让AI秒懂你的代码库</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .feature-icon {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .code-block {
            background: #1e1e1e;
            border-radius: 12px;
            overflow: hidden;
        }
        .step-number {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0px); }
        }
        .float-animation {
            animation: float 6s ease-in-out infinite;
        }
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6">
        <div class="max-w-6xl mx-auto text-center">
            <div class="mb-8 float-animation">
                <i class="fas fa-code-branch text-6xl opacity-90"></i>
            </div>
            <h1 class="text-5xl md:text-6xl font-bold mb-6" style="font-family: 'Noto Serif SC', serif;">
                GitToDoc
            </h1>
            <p class="text-2xl md:text-3xl mb-8 opacity-90">
                让AI秒懂你的代码库
            </p>
            <p class="text-lg md:text-xl max-w-3xl mx-auto mb-10 opacity-80">
                将任何Git仓库快速转换为结构化文档，让Cursor等AI编码工具瞬间理解你的项目架构
            </p>
            <a href="https://www.gittodoc.com/" target="_blank" class="inline-flex items-center bg-white text-purple-700 px-8 py-4 rounded-full font-semibold text-lg hover:bg-gray-100 transition-all duration-300 shadow-lg">
                <i class="fas fa-rocket mr-3"></i>
                立即体验
            </a>
        </div>
    </section>

    <!-- Main Content -->
    <main class="bg-gray-50 py-16">
        <div class="max-w-6xl mx-auto px-6">
            
            <!-- Introduction Card -->
            <div class="bg-white rounded-2xl shadow-xl p-8 mb-12 card-hover">
                <div class="flex items-start">
                    <div class="mr-6">
                        <div class="w-16 h-16 bg-purple-100 rounded-2xl flex items-center justify-center">
                            <i class="fas fa-magic text-3xl feature-icon"></i>
                        </div>
                    </div>
                    <div class="flex-1">
                        <h2 class="text-2xl font-bold mb-4" style="font-family: 'Noto Serif SC', serif;">什么是GitToDoc？</h2>
                        <p class="text-gray-700 leading-relaxed text-lg">
                            GitToDoc是一个创新的工具，它能够将任何Git仓库快速转换为结构化的文档链接。这个工具特别适合需要让AI编码工具（如Cursor）快速索引和理解代码库的开发者。通过智能解析代码结构，GitToDoc让AI助手能够更准确地理解你的项目，提供更精准的代码建议。
                        </p>
                    </div>
                </div>
            </div>

            <!-- Features Grid -->
            <div class="mb-16">
                <h2 class="text-3xl font-bold text-center mb-12" style="font-family: 'Noto Serif SC', serif;">
                    <i class="fas fa-star text-purple-600 mr-3"></i>核心功能
                </h2>
                <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
                        <div class="text-4xl mb-4">
                            <i class="fas fa-sync-alt feature-icon"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">自动转换</h3>
                        <p class="text-gray-600">一键将Git仓库转换为结构化文档格式，无需手动整理</p>
                    </div>
                    <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
                        <div class="text-4xl mb-4">
                            <i class="fas fa-layer-group feature-icon"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">框架支持</h3>
                        <p class="text-gray-600">支持FastAPI、Flask等主流框架，覆盖各类项目需求</p>
                    </div>
                    <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
                        <div class="text-4xl mb-4">
                            <i class="fas fa-robot feature-icon"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">AI优化</h3>
                        <p class="text-gray-600">专为AI工具优化，让Cursor等工具更好地理解代码</p>
                    </div>
                    <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
                        <div class="text-4xl mb-4">
                            <i class="fas fa-bolt feature-icon"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">快速索引</h3>
                        <p class="text-gray-600">提供高效的索引功能，加速AI对代码的理解速度</p>
                    </div>
                    <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
                        <div class="text-4xl mb-4">
                            <i class="fas fa-book-open feature-icon"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">示例仓库</h3>
                        <p class="text-gray-600">提供多种示例仓库，快速上手体验转换效果</p>
                    </div>
                    <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
                        <div class="text-4xl mb-4">
                            <i class="fas fa-smile feature-icon"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">简单易用</h3>
                        <p class="text-gray-600">直观的用户界面，无需复杂配置即可使用</p>
                    </div>
                </div>
            </div>

            <!-- Workflow Visualization -->
            <div class="bg-white rounded-2xl shadow-xl p-8 mb-12">
                <h2 class="text-3xl font-bold text-center mb-8" style="font-family: 'Noto Serif SC', serif;">
                    <i class="fas fa-project-diagram text-purple-600 mr-3"></i>工作流程
                </h2>
                <div class="mermaid">
                    graph LR
                        A[Git仓库] -->|输入URL| B[GitToDoc]
                        B -->|智能解析| C[结构化文档]
                        C -->|生成链接| D[文档URL]
                        D -->|配置到| E[Cursor/AI工具]
                        E -->|理解代码| F[精准建议]
                        
                        style A fill:#f9f,stroke:#333,stroke-width:2px
                        style B fill:#bbf,stroke:#333,stroke-width:2px
                        style C fill:#fbf,stroke:#333,stroke-width:2px
                        style D fill:#bfb,stroke:#333,stroke-width:2px
                        style E fill:#ffb,stroke:#333,stroke-width:2px
                        style F fill:#fbb,stroke:#333,stroke-width:2px
                </div>
            </div>

            <!-- Use Cases -->
            <div class="mb-16">
                <h2 class="text-3xl font-bold text-center mb-12" style="font-family: 'Noto Serif SC', serif;">
                    <i class="fas fa-lightbulb text-purple-600 mr-3"></i>使用场景
                </h2>
                <div class="grid md:grid-cols-3 gap-8">
                    <div class="text-center">
                        <div class="w-20 h-20 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-4">
                            <i class="fas fa-users text-3xl text-purple-600"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">开发团队</h3>
                        <p class="text-gray-600">快速建立项目文档系统，提升团队协作效率</p>
                    </div>
                    <div class="text-center">
                        <div class="w-20 h-20 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-4">
                            <i class="fas fa-brain text-3xl text-purple-600"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">AI辅助编程</h3>
                        <p class="text-gray-600">让AI工具深入理解代码库结构，提供更准确的建议</p>
                    </div>
                    <div class="text-center">
                        <div class="w-20 h-20 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-4">
                            <i class="fas fa-code-branch text-3xl text-purple-600"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">开源项目</h3>
                        <p class="text-gray-600">为开源项目提供清晰的文档入口，降低贡献门槛</p>
                    </div>
                </div>
            </div>

            <!-- Getting Started -->
            <div class="bg-gradient-to-r from-purple-50 to-pink-50 rounded-2xl p-8 mb-12">
                <h2 class="text-3xl font-bold mb-8" style="font-family: 'Noto Serif SC', serif;">
                    <i class="fas fa-rocket text-purple-600 mr-3"></i>快速上手
                </h2>
                <div class="space-y-6">
                    <div class="flex items-start">
                        <div class="step-number mr-4">1</div>
                        <div>
                            <h3 class="text-lg font-semibold mb-2">访问官网</h3>
                            <p class="text-gray-700">前往 <a href="https://www.gittodoc.com/" target="_blank" class="text-purple-600 hover:underline">https://www.gittodoc.com/</a></p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <div class="step-number mr-4">2</div>
                        <div>
                            <h3 class="text-lg font-semibold mb-2">选择Git仓库</h3>
                            <p class="text-gray-700">输入你要转换的Git仓库URL</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <div class="step-number mr-4">3</div>
                        <div>
                            <h3 class="text-lg font-semibold mb-2">生成文档</h3>
                            <p class="text-gray-700">点击"Create Docs"按钮，等待系统自动生成</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <div class="step-number mr-4">4</div>
                        <div>
                            <h3 class="text-lg font-semibold mb-2">配置Cursor</h3>
                            <p class="text-gray-700 mb-4">将生成的文档链接添加到Cursor配置中：</p>
                            <div class="code-block p-4">
                                <pre class="text-green-400 text-sm"><code>{
  "gittodoc": {
    "docUrl": "你的GitToDoc文档链接"
  }
}</code></pre>
                            </div>
                        </div>
                    </div>
                    <div class="flex items-